﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<ProductAttributeInputModels>" %>

<%@ Import Namespace="SDT.Lib.Helpers" %>
<%@ Import Namespace="SDT.Admin.ViewModels" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Chi tiết thuộc tính rao vặt
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <%if (ViewData["MessageInfo"] == null)
      { %>
    <table class="admintable" width="100%">
        <tbody>
            <tr>
                <td class="key">
                    Tên thuộc tính
                </td>
                <td>
                    <%= Model.ProductAttributes.Name%>
                </td>
            </tr>
            <tr>
                <td class="key">
                    Kiểu thuộc tính
                </td>
                <td>
                    <%="CheckBox" %>
                </td>
            </tr>
            <tr>
                <td class="key">
                    Giá trị mặc định
                </td>
                <td>
                    <%=string.IsNullOrEmpty(Model.ProductAttributes.DefaultValue)?"--":Model.ProductAttributes.DefaultValue %>
                </td>
            </tr>
        </tbody>
    </table>
    <%} %>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="Toolbar" runat="server">
    <td>
        <%= Html.Toolbar("Sửa", "/ProductAttribute/Edit/" + Model.ProductAttributes.ID, "edit")%>
    </td>
    <td>
        <%= Html.Toolbar("Xoá", "/ProductAttribute/Delete/" + Model.ProductAttributes.ID, "delete")%>
    </td>
    <td>
        <%= Html.Toolbar("Quay về", "/ProductAttribute", "back")%>
    </td>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="Header" runat="server">
    Chi tiết thuộc tính rao vặt
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="Message" runat="server">
    <%=ViewData["MessageInfo"]!=null? "<p class='perror'>"+Html.Encode(ViewData["MessageInfo"])+"</p>":string.Empty%>
</asp:Content>
